home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-12-08 | 34.9 KB | 977 lines | [TEXT/R*ch] |
- C.S.M.P. Digest Sat, 20 Jun 92 Volume 1 : Issue 119
-
- Today's Topics:
-
- 'aete' Rez and/or ResEdite Template
- Info on designing ADB devices?
- Converting from C++ to Objective C
- Reading Sectors from SuperDrive 800K disk, not 720K
- Information on Bento?
- Converting from C++ to Think C
- Problems Updating MENU Resource
- Stereo sound on the Mac?
-
-
- The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.
-
- These digests are available (by using FTP, account anonymous, your email
- address as password) in the pub/mac/csmp-digest directory on ftp.cs.uoregon.
- edu. This is also the home of the comp.sys.mac.programmer Frequently Asked
- Questions list. The last several issues of the digest are available from
- sumex-aim.stanford.edu as well.
-
- These digests are also available via email. Just send a note saying that you
- want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
- automatically receive each new digest as it is created.
-
- The digest is a collection of articles from the internet newsgroup comp.sys.
- mac.programmer. It is designed for people who read c.s.m.p. semi-regularly
- and want an archive of the discussions. If you don't know what a newsgroup
- is, you probably don't have access to it. Ask your systems administrator(s)
- for details. (This means you can't post questions to the digest.)
-
- The articles in these digests are taken directly from comp.sys.mac.programmer.
- They are not edited; all articles included in this digest are in their original
- posted form. The only articles that are -not- included in these digests are
- those which didn't receive any replies (except those that give information
- rather than ask a question). All replies to each article are concatenated
- onto the original article in the order in which they were received. Article
- threads are not added to the digests until the last article added to the
- thread is at least one month old (this is to ensure that the thread is dead
- before adding it to the digests).
-
- Send administrative mail to mkelly@cs.uoregon.edu.
-
- -------------------------------------------------------
-
- From: mspace@netcom.com (Brian Hall)
- Subject: 'aete' Rez and/or ResEdite Template
- Date: Wed, 29 Apr 92 00:01:03 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
-
- Is there such a thing as a Rez or ResEdit template for 'aete' resources?
- I have looked on the latest developer CD as well as the MPW C Bundle CD
- and could not find one.
-
- - --
-
- \ | / | Brian Hall mspace@netcom.com
- - : - | Mark/Space Softworks Applelink: markspace
- /|\ | America Online: MarkSpace
- |-+-| |
- /-\|/-\ | People don't kill people, toasters kill people.
-
- +++++++++++++++++++++++++++
-
- From: cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton)
- Date: 29 Apr 1992 15:09:50 GMT
- Organization: U. of Texas Health Science Center at Houston
-
- In article <=f_kjb.mspace@netcom.com>, mspace@netcom.com (Brian Hall) writes:
- >
- > Is there such a thing as a Rez or ResEdit template for 'aete' resources?
- > I have looked on the latest developer CD as well as the MPW C Bundle CD
- > and could not find one.
- >
-
- The newest ResEdit supplies templates for aete, etc. resources.
-
- In a similar vein, can anyone tell me why almost NO AppleEvent aware applications
- implement these resources? The ONLY application I have ever seen that does is
- CEIAC. Do developers just not know about them? Are they too hard to use? (I don't
- think so, since even *I* can put them in application I write.) Are they OBE?
-
- Chuck Shotton
-
- +++++++++++++++++++++++++++
-
- From: leonardr@ccs.itd.umich.edu
- Date: 29 Apr 92 16:36:23 GMT
- Organization: Campus Computing Sites, University of Michigan-Ann Arbor
-
- In article <6473@lib.tmc.edu> cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) writes:
- >In article <=f_kjb.mspace@netcom.com>, mspace@netcom.com (Brian Hall) writes:
- >>
- >In a similar vein, can anyone tell me why almost NO AppleEvent aware
- >applications implement these resources? The ONLY application I have ever
- >seen that does is CEIAC.
- >
- Some major applications (and certainly not all) that inlcude 'aete'
- resources - Canvas 3.0, MicroPhone II 4.0, StuffIt Deluxe 3.0, and Excel 4.0.
- I can also guarantee that you will see more than more applications including
- them in the near future (ie. after the WWDC).
-
- >Do developers just not know about them?
- >
- I would say that this, and the fact that since most applications
- aren't doing much more than the required events, they don't really need one
- (YET!)
-
- >Are they too hard to use? (I don't think so...)
- >
- I don't think so either, and I've been putting them in my products
- for a while now.
-
- Leonard Rosenthol
- - --
- - -----------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@ccs.itd.umich.edu
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, inc. GEnie: MACgician
-
- +++++++++++++++++++++++++++
-
- From: mspace@netcom.com (Brian Hall)
- Date: Wed, 29 Apr 92 17:46:31 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
-
- cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) writes:
-
- >In article <=f_kjb.mspace@netcom.com>, mspace@netcom.com (Brian Hall) writes:
- >>
- >> Is there such a thing as a Rez or ResEdit template for 'aete' resources?
- >> I have looked on the latest developer CD as well as the MPW C Bundle CD
- >> and could not find one.
- >>
-
- >The newest ResEdit supplies templates for aete, etc. resources.
-
- The April CD has ResEdit 2.1.1, which does *not* know about aete resources!
-
- - --
-
- \ | / | Brian Hall mspace@netcom.com
- - : - | Mark/Space Softworks Applelink: markspace
- /|\ | America Online: MarkSpace
- |-+-| |
- /-\|/-\ | People don't kill people, toasters kill people.
-
- +++++++++++++++++++++++++++
-
- From: lai@Apple.COM (Ed Lai)
- Date: 29 Apr 92 18:46:08 GMT
- Organization: Apple Computer Inc., Cupertino, CA
-
- In article <a!+km4m.mspace@netcom.com> mspace@netcom.com (Brian Hall) writes:
- >cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) writes:
- >
- >>In article <=f_kjb.mspace@netcom.com>, mspace@netcom.com (Brian Hall) writes:
- >>>
- >>> Is there such a thing as a Rez or ResEdit template for 'aete' resources?
- >>> I have looked on the latest developer CD as well as the MPW C Bundle CD
- >>> and could not find one.
- >>>
- >
- >>The newest ResEdit supplies templates for aete, etc. resources.
- >
- >The April CD has ResEdit 2.1.1, which does *not* know about aete resources!
- >
- >--
- >
- > \ | / | Brian Hall mspace@netcom.com
- > - : - | Mark/Space Softworks Applelink: markspace
- > /|\ | America Online: MarkSpace
- > |-+-| |
- >/-\|/-\ | People don't kill people, toasters kill people.
-
- I don't know if the template is in the April CD or not, anyway I am putting
- a copy in ftp.apple.com. It will be in the directory /pub/appleevents.
-
- However, anything other than the smallest 'aete' is too small to be edited
- as a ResEdit template, or at least too painful to do so.
-
- There is a HyperCard stack that let you edit the aete resource. It has been
- submitted to the developer CD, I guess it would be the May issue. I have
- also put it in ftp.apple.com in the same directory. And to justify why
- developer should put aete resource in their application, I also put up a
- sample application with aete resource on ftp, as well as a HyperCard Apple
- Event XCMD stack. The XCMD stack will contains a number of XCMDs that let
- you talk to an Apple Event aware application, the stack will also take
- advantage of the aete resource in the application to make the conversation
- as painless as possible.
-
- /* Disclaimer: All statments and opinions expressed are my own */
- /* Edmund K. Lai */
- /* Apple Computer, MS37-UP */
- /* 20525 Mariani Ave, */
- /* Cupertino, CA 95014 */
- /* (408)974-6272 */
- zW@h9cOi
-
- +++++++++++++++++++++++++++
-
- From: Daryl_Spitzer@mindlink.bc.ca (Daryl Spitzer)
- Date: 29 Apr 92 21:22:37 GMT
- Organization: MIND LINK! - British Columbia, Canada
-
- Where can I get documentation on 'aete' resources? I can't find any reference
- to them in Inside Macintosh Volume VI.
- - --
- - -------------------------------------------------------------------
- Daryl_Spitzer@mindlink.bc.ca "Life isn't just, life just is."
- a2251@mindlink.bc.ca -- Me (I think.)
- Spitzer@UNCAMULT.BITNET
- - -------------------------------------------------------------------
-
- +++++++++++++++++++++++++++
-
- From: lai@Apple.COM (Ed Lai)
- Date: 29 Apr 92 21:36:28 GMT
- Organization: Apple Computer Inc., Cupertino, CA
-
- Some more on aete resource.
-
- Aete resource just tells you what kind of Apple Event support an application has.
- It is mainly for information. So if an application is Apple Event aware but does
- not have an aete resource, but you know what events it supports, you can always
- make up an aete resource yourself and ResEdit it into the application. All of
- a sudden, scripting language that understands aete resource will know how to
- talk to that application through Apple Events.
-
- For those who have access to ToolServer which is available on the ETO CD, here
- is another Apple Event aware application that does not have an aete resource.
- So you may want to stick in an aete resource of your own. But there is one
- catch, ToolServer only supports a limited number of Apple Events, but effectively
- it supports a lot of Apple Events because of the DoScript command. I have a
- little hack so that every MPW command that ToolServer has access to becomes an
- Apple Event server as long as the description of that MPW command is the aete
- resource and the aete resource is written with certain convention. I am also
- putting it up on ftp.apple.com. However you must get hold of ToolServer
- separately. It can be a lot of fun using the HyperCard XCMD stack and talk to
- the ToolServer using Apple Events.
-
- I forget to mention that another Apple Event server with aete resource is the
- Clipboard Magician 0.71. It is available on developer CD, it is also on
- ftp.apple.com but in the directory /pub/lai.
-
- /* Disclaimer: All statments and opinions expressed are my own */
- /* Edmund K. Lai */
- /* Apple Computer, MS37-UP */
- /* 20525 Mariani Ave, */
- /* Cupertino, CA 95014 */
- /* (408)974-6272 */
- zW@h9cOi
-
- +++++++++++++++++++++++++++
-
- From: jpugh@apple.com (Jon Pugh)
- Date: 16 May 92 18:09:43 GMT
- Organization: Apple Computer, Inc.
-
- In article <11733@mindlink.bc.ca>, Daryl_Spitzer@mindlink.bc.ca (Daryl Spitzer) writes:
- >
- > Where can I get documentation on 'aete' resources? I can't find any reference
- > to them in Inside Macintosh Volume VI.
-
- The best place for this info is the New Inside Macintosh InterApplication
- Communication chapter which is available on the May Developer CD (The Byte
- Stuff). This will eventually be published so that you can read the whole
- Inside Macintosh all over again. After all, how many times have you read
- The Lord of the Rings? ;)
-
- Jon
-
- ---------------------------
-
- From: speth@cats.ucsc.edu (James Gustave)
- Subject: Info on designing ADB devices?
- Date: 1 May 92 01:47:22 GMT
- Organization: University of California, Santa Cruz
-
-
- Where can I get detailed information about designing devices for the ADB?
- Thanks.
-
- - --
- Jim Speth
- speth@cats.ucsc.edu
-
- +++++++++++++++++++++++++++
-
- From: absurd@applelink.apple.com (Tim Dierks, software saboteur)
- Date: 19 May 92 01:43:31 GMT
- Organization: MacDTS Misfits
-
- In article <34283@darkstar.ucsc.edu>, speth@cats.ucsc.edu (James Gustave) writes:
- > Where can I get detailed information about designing devices for the ADB?
- > Thanks.
-
- Drop a note to SW.LICENSE@applelink.apple.com. For a very modest licensing fee,
- you will become an ADB licensee! This package includes a wide variety of wonderful
- goodies, including specs for the ADB, design documents on all of Apple's ADB
- peripherals, and the right to force me to register an ADB ID for you, whether
- I want to or not! This, and much, much, more, can be yours! Operators are
- standing by!
-
- Tim Dierks
- "That guy with the ADB database."
-
- ---------------------------
-
- From: nagle@netcom.com (John Nagle)
- Subject: Converting from C++ to Objective C
- Date: Wed, 06 May 92 23:18:05 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
-
- I'm considering converting some programs from MPW C++ to Objective C,
- primarily to use the better libraries that Think C offers. Are there
- any tools that will assist with a conversion from MPW C++ to Objective-C?
- I don't have any multiple inheritance, template, exception, MacApp, or
- pointer-to-function-member problems to deal with, so Objective-C has
- enough power to deal with the problem. But some mechanical tools for
- dealing with the translation would help.
-
- (Yes, I know all too well about Symnantec's acquistion of the Zortech
- line, but I've had it with Zortech C++)
-
- John Nagle
-
- For sale, cheap: Zortech C++ for the Mac, latest version 2.1.3. Doesn't
- support current MPW, floating point coprocessors, templates,...
- Will trade for current Think C.
-
- +++++++++++++++++++++++++++
-
- From: e-sink@uiuc.edu (Eric W. Sink)
- Organization: University of Illinois at Urbana-Champaign
- Date: Thu, 7 May 1992 15:42:14 GMT
-
- In <acfkk0h.nagle@netcom.com> nagle@netcom.com (John Nagle) writes:
-
- > I'm considering converting some programs from MPW C++ to Objective C,
- >primarily to use the better libraries that Think C offers. Are there
- >any tools that will assist with a conversion from MPW C++ to Objective-C?
- >I don't have any multiple inheritance, template, exception, MacApp, or
- >pointer-to-function-member problems to deal with, so Objective-C has
- >enough power to deal with the problem. But some mechanical tools for
- >dealing with the translation would help.
-
- Um, er, well...
-
- THINK C is not Objective-C. It is a C++ subset. I know of no
- tools to automate the process of converting C++ to THINK C.
-
- I also know of no tools to automate the process of converting C++
- to ObjC.
-
- - --
- Eric W. Sink, USACERL | The essence of GUI programming : "What
- Box 9005, Champaign, IL | started out as a half hour hack has been
- 61826-9005 1-800-USA-CERLx449 | bothering me for two weeks now." -- Matt Mora
- - ---- e-sink@uiuc.edu ---------|
-
- +++++++++++++++++++++++++++
-
- From: eric_berdahl@taligent.com (Eric Berdahl)
- Date: 7 May 92 18:23:36 GMT
- Organization: Taligent, Inc.
-
- In article <acfkk0h.nagle@netcom.com>, nagle@netcom.com (John Nagle) writes:
- > I'm considering converting some programs from MPW C++ to Objective C,
- > primarily to use the better libraries that Think C offers. Are there
- > [remainder deleted]
-
- John,
-
- You do realize that Think C is NOT Objective C, don't you? True, it is not C++,
- and it is more than ANSI C, but it is not Objective C. Instead, Think provides
- object-oriented extensions to C that look a little like C++. Objective C is a
- language (designed by a company named Stepstone) that borrows from C and
- Smalltalk. Its syntax and traditions are very different from C++, and the
- object C Symantec sells in Think C.
-
- Of course, now that Stepstone sells an Objective C compiler for the Mac, we have
- even more choices to make (C++, Objective C, Think Object C, Smalltalk, Lisp,
- Dylan [someday],I) for our preferred mode of expression. Oh, well. They say
- that's what makes life interesting.
-
- Regards,
- Eric
- - --
- Eric Berdahl MADA President
- Internet: eric_berdahl@taligent.com AppleLink: BERDAHL
- #include <StdDisclaimer.h>
- This is a freeware signature. What do you expect for nothing?
-
-
- +++++++++++++++++++++++++++
-
- From: drc@claris.com (Dennis Cohen)
- Date: 7 May 92 14:41:29 GMT
- Organization: Claris Corporation, Santa Clara CA
-
- nagle@netcom.com (John Nagle) writes:
-
- > I'm considering converting some programs from MPW C++ to Objective C,
- >primarily to use the better libraries that Think C offers. Are there
-
- THINK C does not use Objective C, they use Object C -- the Object Pascal
- equivalent in C. It is (almost) a C++ subset. Objective C is the language
- developed by Brad Cox and StepStone which is essentially C with embedded
- SmallTalk for OO work. StepStone has an Objective C preprocessor to the
- MPW C compiler for $99. It comes with their Software ICPak (component
- library).
-
- >any tools that will assist with a conversion from MPW C++ to Objective-C?
- >I don't have any multiple inheritance, template, exception, MacApp, or
- >pointer-to-function-member problems to deal with, so Objective-C has
- >enough power to deal with the problem. But some mechanical tools for
- >dealing with the translation would help.
-
- If you don't use "friend" or overloading, you probably don't have much to
- convert. If you do, you're going to need to do it manually, anyway.
-
-
- - --
- Dennis Cohen
- Claris Corp.
- ****************************************************
- Disclaimer: Any opinions expressed above are _MINE_!
-
- +++++++++++++++++++++++++++
-
- From: steve@oceania.com (Steve Dakin)
- Organization: Oceania Health Care Systems
- Date: Thu, 7 May 92 19:54:44 GMT
-
- In article <acfkk0h.nagle@netcom.com> nagle@netcom.com (John Nagle) writes:
- > I'm considering converting some programs from MPW C++ to Objective C,
- > primarily to use the better libraries that Think C offers. Are there
- > any tools that will assist with a conversion from MPW C++ to Objective-C?
-
- Objective-C only works with MPW 3.2 at the moment. Stepstone said they were
- interested in getting it to work with THINK C, but I wouldn't hold your breath
- waiting for that.
-
- Although I like the THINK environment better, the benefits of programming in
- Objective-C outweigh the disadvantages of MPW (lack of speed, cryptic, to name
- a couple).
-
- Steve
- - --
- Steve Dakin Oceania Health Care Systems
- steve@oceania.com (NeXT mail) Palo Alto, CA (415) 322-0127
- jester@oceania.com
-
- +++++++++++++++++++++++++++
-
- From: Monty Solomon <monty%roscom@think.com>
- Organization: Proponent
- Date: Sat, 9 May 1992 04:35:55 GMT
-
- In article <14287@claris.com> drc@claris.com (Dennis Cohen) writes:
- > THINK C does not use Objective C, they use Object C -- the Object Pascal
- > equivalent in C. It is (almost) a C++ subset. Objective C is the language
- > developed by Brad Cox and StepStone which is essentially C with embedded
- > SmallTalk for OO work. StepStone has an Objective C preprocessor to the
- > MPW C compiler for $99. It comes with their Software ICPak (component
- > library).
-
- What is the current status of Objective C for the Macintosh?
-
- What libraries does it come with?
-
- Does it have any support for MacApp?
-
- Any other info?
-
- Thanks.
- - --
- # Monty Solomon / PO Box 2486 / Framingham, MA 01701-0405
- # monty%roscom@think.com
-
- +++++++++++++++++++++++++++
-
- From: steve@oceania.com (Steve Dakin)
- Date: 12 May 92 19:52:47 GMT
- Organization: Oceania Health Care Systems
-
- In article <1992May9.043555.3738@proponent.com> Monty Solomon
- <monty%roscom@think.com> writes:
- > What is the current status of Objective C for the Macintosh?
-
- Shipping.
-
- > What libraries does it come with?
-
- It comes with Stepstone's ICPak-101 which is a set of 20 classes that support
- basic data structures (e.g. lists, stacks, arrays).
-
- > Does it have any support for MacApp?
-
- Not that I am aware of.
-
- > Any other info?
-
- I've been programming the NeXT for over 3 years and am quite pleased that I can
- finally use my favorite language on the Mac. I have been using Objective-C
- with MPW for over a month now (it was just released...), and am happy to report
- that my only gripe is that it doesn't support "\p" style Pascal string
- constants (you have to put the length byte in yourself). Outside of that, it
- has proven to be quite useful and has jumped to the top of my list of favorite
- Mac Languages. I haven't completed a project with it yet, so it may be too
- early to tell - but everything is cruising along so far.
-
- I don't know if Stepstone is still offering the $99 price, but if they are and
- you have MPW C 3.2, it's a steal of a deal.
-
- Disclaimer: I am not affiliated with Stepstone except as a happy customer.
-
- Steve
- - --
- Steve Dakin Oceania Health Care Systems
- steve@oceania.com (NeXT mail) Palo Alto, CA (415) 322-0127
- jester@oceania.com
-
- +++++++++++++++++++++++++++
-
- From: shirley@gothamcity.jsc.nasa.gov (Bill Shirley [CSC])
- Date: 18 May 92 15:17:36 GMT
- Organization: Software Technology Lab - NASA/Johnson Space Center
-
- In article <1992May9.043555.3738@proponent.com>, Monty Solomon <monty%roscom@think.com> writes:
- |> In article <14287@claris.com> drc@claris.com (Dennis Cohen) writes:
- |> > THINK C does not use Objective C, they use Object C -- the Object Pascal
- |> > equivalent in C. It is (almost) a C++ subset. Objective C is the language
- |> > developed by Brad Cox and StepStone which is essentially C with embedded
- |> > SmallTalk for OO work. StepStone has an Objective C preprocessor to the
- |> > MPW C compiler for $99. It comes with their Software ICPak (component
- |> > library).
- |>
- |> What is the current status of Objective C for the Macintosh?
-
- It is available from
- The Stepstone Corporation
- (203) 426-1875 - (800) BUY-OBJEct voice / (203) 270-0106 fax
- 75 Glen Road
- Sandy Hook, CT 06482
-
- it works with MPW
-
- |>
- |> What libraries does it come with?
-
- I'm not sure, but probably ICPak101 - Foundation Class Library
- and ICpak 201 - GUI library is probably available at extra cost
-
- |>
- |> Does it have any support for MacApp?
-
- Don't know
-
- |> Any other info?
-
- I can send the comp.lang.objective-c FAQ file if that's the info you want
-
- |>
- |> Thanks.
- |> --
- |> # Monty Solomon / PO Box 2486 / Framingham, MA 01701-0405
- |> # monty%roscom@think.com
-
- - --
- Bill Shirley
- shirley@krakatoa.jsc.nasa.gov
-
- +++++++++++++++++++++++++++
-
- From: steve@oceania.com (Steve Dakin)
- Date: 18 May 92 17:41:43 GMT
- Organization: Oceania Health Care Systems
-
- In article <1992May18.101736@gothamcity.jsc.nasa.gov>
- shirley@gothamcity.jsc.nasa.gov (Bill Shirley [CSC]) writes:
- > |>
- > |> What libraries does it come with?
- >
- > I'm not sure, but probably ICPak101 - Foundation Class Library
- > and ICpak 201 - GUI library is probably available at extra cost
-
- It DOES come with the ICPak101, but the ICPak201 is not yet available for the
- Mac. Stepstone is still selling Obj-C for the Mac for $99 (a steal!).
-
- Just a happy Objective-C user,
-
- Steve
-
-
- - --
- Steve Dakin Oceania Health Care Systems
- steve@oceania.com (NeXT mail) Palo Alto, CA (415) 322-0127
- jester@oceania.com
-
- +++++++++++++++++++++++++++
-
- From: ksand@apple.com (Kent Sandvik)
- Date: 19 May 92 02:45:36 GMT
- Organization: MacDTS Mongols
-
- In article <1992May18.101736@gothamcity.jsc.nasa.gov>,
- shirley@gothamcity.jsc.nasa.gov (Bill Shirley [CSC]) writes:
- >
- > In article <1992May9.043555.3738@proponent.com>, Monty Solomon > |> Does it
- have any support for MacApp?
- >
- > Don't know
-
- Not according to the manual. I got my copy today from the engineering
- library, and if I have enough time I will stress-test the package for
- a week or so. Lack of an application framework means I have to write
- one, sigh.
-
- Cheers,
- Kent
-
- ---------------------------
-
- From: swb1_ltd@uhura.cc.rochester.edu (Steve Berkley)
- Subject: Reading Sectors from SuperDrive 800K disk, not 720K
- Date: 7 May 92 15:08:22 GMT
- Organization: University of Rochester - Rochester, New York
-
- Thanks to all who provided informative (and some not) possible
- solutions for my attempts to get the SuperDrive to read MFM
- diskettes from a keyboard sampler (EPS). Unfortunately, there
- are new problems.
-
- The .Sony driver knows this is not a GCR diskette, so it attempt
- to read the diskette as if it were a 720K MFM (IBM) diskette.
- Unfortunately, the diskette is sectored 0-9, not 1-9 as IBM
- diskettes, so PBRead calls always skip sector 0.
-
- I suspect this would mean the only solution left is in tweaking the
- actual driver. Any ideas?
-
- - -Steve B
- swb1_ltd@uhura.cc.rochester.edu
-
- +++++++++++++++++++++++++++
-
- From: stevec@Apple.COM (Steve Christensen)
- Date: 19 May 92 01:16:14 GMT
- Organization: Apple Computer Inc., Cupertino, CA
-
- swb1_ltd@uhura.cc.rochester.edu (Steve Berkley) writes:
- >The .Sony driver knows this is not a GCR diskette, so it attempt
- >to read the diskette as if it were a 720K MFM (IBM) diskette.
- >Unfortunately, the diskette is sectored 0-9, not 1-9 as IBM
- >diskettes, so PBRead calls always skip sector 0.
-
- >I suspect this would mean the only solution left is in tweaking the
- >actual driver. Any ideas?
-
- Yes, I don't suggest you tweak the driver. The driver itself will only deal
- with the four disk formats it knows about. It doesn't have tables of format
- information that it references, and thus that you could change on the fly.
-
- Second point: on the IIfx and Quadra 900, the entire floppy system is run by
- a separate processor, so you won't have any access to the hardware or to the
- code that runs the show. Also, on the portable Macs, power management stuff
- is integrated into the floppy driver, so playing inside the driver could
- cause problems elsewhere.
-
- Third point: Apple will, no doubt, get around to changing their floppy
- hardware to improve performace, support new formats, etc. When this happens,
- any inside tweaks will no longer work.
-
- Of course (since I missed the original post), if you just need to get this
- working on your system at home, compatibility is not quite the issue. If
- so, ignore my ranting...
-
- steve
-
- - --
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Steve Christensen Never hit a man with glasses.
- stevec@apple.com Hit him with a baseball bat.
-
- ---------------------------
-
- From: blevine@pdq.East.Sun.COM (Brian Levine - Sun BOS Software)
- Subject: Information on Bento?
- Date: 29 Apr 92 17:54:12 GMT
- Organization: Sun Microsystems, Inc.
-
-
- Hi all,
-
- Can someone tell me where I can find more info on Bento, Apple's proposal for
- a compound document storage format?
-
- Thanks!
-
- Brian Levine
-
- (blevine@east.sun.com)
- SunSoft, Inc.
- 2 Federal Street
- Billerica, MA 01821
-
- +++++++++++++++++++++++++++
-
- From: hpoppe@ncar.ucar.edu (Herb Poppe)
- Date: 30 Apr 92 14:49:47 GMT
- Organization: National Center for Atmospheric Research
-
- In article <tmns4INNjoc@seven-up.East.Sun.COM> blevine@pdq.East.Sun.COM
- (Brian Levine - Sun BOS Software) writes:
-
- > Can someone tell me where I can find more info on Bento, Apple's
- proposal for
- > a compound document storage format?
-
- There will be a session entitled "BENTO: The Industrial Strength Document
- Model" on Friday, May 15 from 9:30 to 11:30 at Apple's World-Wide
- Developer's Conference in San Jose, CA.
-
- Herb Poppe National Center for Atmospheric Research (NCAR)
- hpoppe@ncar.ucar.edu 1850 Table Mesa Dr.
- (303) 497-1296 Boulder, CO 80303
-
- +++++++++++++++++++++++++++
-
- From: miyazaki@phoenix.Princeton.EDU (Takeshi Miyazaki)
- Date: 30 Apr 92 22:17:38 GMT
- Organization: Princeton University
-
-
- I hope Apple use "Obento" instead of "Bento", which is more polite :)
-
- - --
- Takeshi Miyazaki (miyazaki@ee.princeton.edu)
-
- +++++++++++++++++++++++++++
-
- From: jpugh@apple.com (Jon Pugh)
- Date: 16 May 92 18:06:48 GMT
- Organization: Apple Computer, Inc.
-
- In article <tmns4INNjoc@seven-up.East.Sun.COM>, blevine@pdq.East.Sun.COM (Brian Levine - Sun BOS Software) writes:
- >
- > Can someone tell me where I can find more info on Bento, Apple's proposal for
- > a compound document storage format?
-
- You should probably email Richard Moore (MOORE.RK@Applelink.Apple.Com) and
- ask for info.
-
- Jon
-
- ---------------------------
-
- From: nagle@netcom.com (John Nagle)
- Subject: Converting from C++ to Think C
- Date: Thu, 30 Apr 92 07:08:58 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
-
- I'm considering converting a program from MPW C++ to Think C.
- How hard a job is this, and are there any mechanical aids for so doing?
-
- John Nagle
-
- (Yes, I know this is a downward conversion.)
-
- +++++++++++++++++++++++++++
-
- From: ksand@apple.com (Kent Sandvik)
- Date: 16 May 92 23:23:41 GMT
- Organization: MacDTS Mongols
-
- In article <fs+kwq+.nagle@netcom.com>, nagle@netcom.com (John Nagle) writes:
- >
- >
- > I'm considering converting a program from MPW C++ to Think C.
- > How hard a job is this, and are there any mechanical aids for so doing?
-
- No tools that I know about, the most ugly thing would be to convert
- nice constructors to simple ones, but then again if the code is MacApp
- you don't have this problem. Another silly limitation is the lack of
- any more complex functionality inside a constructor (like creating
- other objects). I guess downgrading is fine, but sooner or later you
- need to upgrade again (grin).
-
- Cheers,
- Kent
- Dynamic Language Evangelist - "I'm on a mission from God" (Blues Brothers
- for you non-American culture-fans).
-
- ---------------------------
-
- From: talcott@grape.ucsb.edu (Talcott)
- Subject: Problems Updating MENU Resource
- Date: 14 May 92 15:52:26 GMT
- Organization: University of California, Santa Barbara
-
- I'm having some problems saving changes made to a MENU resource at run-time.
- Essentially, I'm allowing the user to add and delete items from a pop-up menu
- and I want to save those changes to disk when the program quits.
-
- The way I was doing this was by calling ChangedResource() on the MenuHandle
- for the pop-up menu. The problem with this was that when I call GetMenu() the
- next time the program runs, the menu is not displayed. If I replace the MENU
- resource, the program will work again. It appears that the MENU resource is
- getting corrupted somehow.
-
- I am using THINK C 5.0.1. Any help would be GREATLY appreciated. Please reply
- via e-mail, unless you believe that other netters could benefit from your
- response. Thanks in advance.
-
- Adam R. Talcott | "Who's more foolish: the fool or
- talcott@grape.ucsb.edu | the fool who follows him?"
- Graduate Student (Computer Engineering) | -- Ben "Obi-Wan" Kenobi
- University of California, Santa Barbara | "Star Wars"
-
- +++++++++++++++++++++++++++
-
- From: dorner@pequod.cso.uiuc.edu (Steve Dorner)
- Date: 15 May 92 17:33:38 GMT
- Organization: University of Illinois at Urbana-Champaign
-
- talcott@grape.ucsb.edu (Talcott) writes:
- >The way I was doing this was by calling ChangedResource() on the MenuHandle
- >for the pop-up menu. The problem with this was that when I call GetMenu() the
- >next time the program runs, the menu is not displayed.
-
- The menu manager puts something in the menuProc field. Assuming you have
- a MenuHandle in mh, you want something like:
-
- Handle savedProcId = (*mh)->menuProc;
- (*mh)->menuProc = nil;
- ChangedResource(mh);
- WriteResource(mh);
- (*mh)->menuProc = savedProcId;
- - --
- Steve Dorner, U of Illinois Computing Services Office
- Internet: s-dorner@uiuc.edu UUCP: uunet!uiucuxc!uiuc.edu!s-dorner
-
- +++++++++++++++++++++++++++
-
- From: keith@taligent.com (Keith Rollin)
- Date: 16 May 92 22:51:47 GMT
- Organization: Taligent
-
- In article <4643@ucsbcsl.ucsb.edu>, talcott@grape.ucsb.edu (Talcott) writes:
- >
- > I'm having some problems saving changes made to a MENU resource at run-time.
- > Essentially, I'm allowing the user to add and delete items from a pop-up menu
- > and I want to save those changes to disk when the program quits.
- >
- > The way I was doing this was by calling ChangedResource() on the MenuHandle
- > for the pop-up menu. The problem with this was that when I call GetMenu() the
- > next time the program runs, the menu is not displayed. If I replace the MENU
- > resource, the program will work again. It appears that the MENU resource is
- > getting corrupted somehow.
- >
- > I am using THINK C 5.0.1. Any help would be GREATLY appreciated. Please
- reply
- > via e-mail, unless you believe that other netters could benefit from your
- > response. Thanks in advance.
-
- >From page I-364 of Inside Mac:
-
- "The four bytes beginning with the resource ID of the menu definition procedure
- serve as a placeholder for the handle to the procedure: When GetMenu is called
- to read the menu from the resource file, it also reads in the menu definition
- procedure if necessary, and replaces these four bytes with a handle to the
- procedure."
-
- When you save out the MENU resource, you are writing out a version that has a
- handle to the MDEF, instead of the resource ID of the MDEF, which is what you
- want. I guess it would go like this:
-
- mdefHandle = (**myMenu).menuProc;
- (**myMenu).menuProc = (Handle) (mdefID << 16); // mdefID will probably be zero
- ChangedResource(myMenu);
- WriteResource(myMenu);
- (**myMenu).menuProc = mdefHandle;
-
- - --
- Keith Rollin
- Phantom Programmer
- Taligent, Inc.
-
- ---------------------------
-
- From: Stephen Kohlmeyer
- Subject: Stereo sound on the Mac?
- Organization: University of Minnesota
- Date: Fri, 15 May 1992 00:18:14 GMT
-
- Hello News readers,
-
- Is it possible to program a Mac II (or better) with stereo sound output?
- If it is possible, then I would like to play a sound to either
- the left or right channel as I need. How can I direct the sound to
- one channel or another?
-
- Thanks in advance.
- Steve Kohlmeyer
- U of MN
- kohlmeyer@cs.umn.edu
-
-
-
- +++++++++++++++++++++++++++
-
- From: REEKES@applelink.apple.com (Jim Reekes)
- Date: 18 May 92 19:12:09 GMT
- Organization: Apple Computer, Inc.
-
- In article <1992May15.001814.9422@news2.cis.umn.edu>, Stephen Kohlmeyer writes:
- >
- > Hello News readers,
- >
- > Is it possible to program a Mac II (or better) with stereo sound output?
-
- Yes, but no programming is necessary. Just call SndPlay on a snd resource
- that contains a stereo sound header, or call bufferCmd yourself pointing
- at this sound header.
-
- > If it is possible, then I would like to play a sound to either
- > the left or right channel as I need. How can I direct the sound to
- > one channel or another?
-
- No can do with the current version of the Sound Manager. The stereo
- buffer will contain the left/right information. If the sound is in the
- left channel of the sound header then it plays in the left speaker. You
- cannot "pan" a sound within the stereo field. It's a feature we're adding
- to the next version of the Sound Manager.
-
- - -----------------------------------------------------------------------
- Jim Reekes, Polterzeitgeist | Macintosh Toolbox Engineering
- | Sound Manager Expert
- Apple Computer, Inc. | "All opinions expressed are mine, and do
- 20525 Mariani Ave. MS: 81-KS | not necessarily represent those of my
- Cupertino, CA 95014 | employer, Apple Computer Inc."
-
- +++++++++++++++++++++++++++
-
- From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
- Organization: Kalamazoo College
- Date: Wed, 20 May 1992 04:34:54 GMT
-
- REEKES@applelink.apple.com (Jim Reekes) writes:
- >Stephen Kohlmeyer writes:
- >>
- >> I would like to play a sound to either
- >> the left or right channel as I need. How can I direct the sound to
- >> one channel or another?
- >
- >No can do with the current version of the Sound Manager.
-
- Jim, can't you open two channels, one with initChanLeft and one with
- initChanRight, and send bufferCmds to either or both?
-
- >You
- >cannot "pan" a sound within the stereo field. It's a feature we're adding
- >to the next version of the Sound Manager.
-
- Ooooooh, you shouldn't tease us like this! :-)
- - --
- Jamie McCarthy Internet: k044477@kzoo.edu AppleLink: j.mccarthy
- Civil Rights: 1964 - 1992. R.I.P.
-
- ---------------------------
-
- End of C.S.M.P. Digest
- **********************
-